
import PageView from '../../../static/sys/js/view/PageView'


var Detail = PageView.extend({
  type: "Detail",

  initialize: function () {
    // this.$el.on("click", ".specification", this.takeSpecification.bind(this));
    this.$el.on("click", ".address", this.takeAddress.bind(this));
    this.$el.on("click", ".backdrop", this.hide.bind(this));
    this.$el.on("click", ".close-a", this.hide.bind(this));

  },
  didRender: function () {

  },
  takeAddress: function () {
    this.$el.find(".address-modal").addClass("active");
    this.$el.find(".backdrop").addClass("active");
  },
  // takeSpecification: function (e) {
  //   this.$el.find(".specification-modal").addClass("active");
  //   this.$el.find(".backdrop").addClass("active");
  // },
  hide: function () {
    this.$el.find(".address-modal").removeClass("active");
    // this.$el.find(".specification-modal").removeClass("active");
    this.$el.find(".backdrop").removeClass("active");
  },
  onResume: function () {

  }
})



export default  Detail
